﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using MahApps.Metro.Controls;

namespace RazorSourceGenerator
{
    /// <summary>
    /// ConnectionStringHelp.xaml 的交互逻辑
    /// </summary>
    public partial class ConnectionStringHelp : MetroWindow
    {
        public ConnectionStringHelp()
        {
            InitializeComponent();
        }

        public string SelectedConnectionString { get; private set; }

        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            SelectedConnectionString = null;
            this.Close();
        }

        private void btnOK_Click(object sender, RoutedEventArgs e)
        {
            SelectedConnectionString = this.lstConnStr.SelectedValue.ToString().Trim();
            DialogResult = true;
            this.Close();
        }
    }
}
